from tensorflow.python.data.experimental.ops.testing import sleep

from service.simple_service import update_day_his
from utils.data_source import query, update, engine
from utils.data_utils import data_update

import akshare as ak

if __name__ == '__main__':
    symbols = \
        query(
            """select distinct 代码 as symbol from company where 代码 not in (select distinct symbol from history)""")[
        "symbol"].values
    for symbol in symbols:
        data_update(symbol, symbol)
